// YZPack v2.0 OEP Finder Script by LaFarge/ICU

find eip, #FF6528#
bp $RESULT
run
bc eip
sti
find eip, #FF6510#
bp $RESULT
run
bc eip
sti
an eip
cmt eip,"OEP Reached!"
dpe "dumped.exe", eip
msg "OEP reached, executable has been dumped! Rebuild imports with ImpRec."